# 在数据库中创建错误表

import pymysql

def create_table():

    #db = pymysql.connect(host='localhost', user='root', password='ljldmysql.', port=3306)
    db = pymysql.connect(host='120.24.90.180', user='root', password='1203', port=3306, db='ours_database')
    cursor = db.cursor()
    sql = 'CREATE TABLE IF NOT EXISTS ERROR (error_id VARCHAR(255) NOT NULL, error_msg text NOT NULL, PRIMARY KEY (error_id))'
    cursor.execute(sql)
    db.close()




